#!/bin/bash

if [ $# -ne 4 ]
then
	echo "Usage: " $0 " num protocol_length sleep epoll_timeout"
	exit 0
fi

NUM=$1
IP=192.168.1.102
LENGTH=$2
SLEEP=$3
EPOLL_TIMEOUT=$4

rm log/*

BIN=./socket_client

for((i=0;i<${NUM};++i))
{
	${BIN} ${IP} ${LENGTH} ${SLEEP} ${EPOLL_TIMEOUT} >> tmp 2>&1 &
## sleep 2
}


